package com.yhs.YShop;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;


/**
 * Hello world!
 *
 */
@SpringBootApplication
@MapperScan("com.yhs.YShop.mapper")
@EntityScan("com.yhs.YShop.moudle.*.model")
@EnableJpaRepositories(basePackages="com.yhs.YShop.moudle.*.mapper")
public class YShopApplication 
{
    public static void main( String[] args )
    {
    	 //解决netty冲突
        System.setProperty("es.set.netty.runtime.available.processors", "false");
    	SpringApplication.run(YShopApplication.class, args);
        System.out.println( "Hello World!" );
        System.out.println( "Hello" );
    }
    
    
}
